package com.cloudshop.service.common.enums;

/**
 * JwtKeyEnum.
 *
 * @author 宫新程
 * @since 2019/4/1 10:40
 */
public enum JwtKeyEnum {

    /** JwtKeyEnum. */
    TOKEN_PREFIX("Bearer ", "token头"),
    TOKEN_USER_ID("userId", "用户id"),
    TOKEN_USER_NAME("userName", "用户名称"),
    TOKEN_NICK_NAME("nickName", "用户昵称"),
    TOKEN_SHOP_ID("shopId", "店铺id"),
    TOKEN_SHOP_NAME("shopName", "店铺名称"),
    TOKEN_ROLE_LIST("roleList", "角色列表"),
    TOKEN_PERMISSION_CODE_LIST("permissionCodeList", "权限编码列表"),
    TOKEN_PERMISSION_NAME_LIST("permissionNameList", "权限名称列表");

    private String key;
    private String value;

    JwtKeyEnum(String key, String value) {
        this.key = key;
        this.value = value;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }
}
